package com.eduask.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.eduask.beans.CarSchema;
import com.eduask.dao.CarSchemaDAO;
import com.eduask.service.CarSchemaService;

@Transactional
@Service
public class CarSchemaServiceImpl implements CarSchemaService{
	
	@Autowired
	private CarSchemaDAO carSchemaDAO;

	@Override
	public CarSchema findCarSchemaById(Integer id) {
		return carSchemaDAO.findCarSchemaById(id);
	}

	@Override
	public List<CarSchema> findAllCarSchemas() {
		return carSchemaDAO.findAllCarSchemas();
	}

	@Override
	public void updateCarSchema(CarSchema carSchema) {
		carSchemaDAO.updateCarSchema(carSchema);
	}

}
